<template>
  <n-loading-bar-provider>
    <NDialogProvider>
      <DialogContent />
      <NNotificationProvider>
        <NMessageProvider>
          <MessageContent />
          <slot ></slot>
        </NMessageProvider>
      </NNotificationProvider>
    </NDialogProvider>
  </n-loading-bar-provider>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import {
  NDialogProvider,
  NNotificationProvider,
  NMessageProvider,
  NLoadingBarProvider,
} from 'naive-ui';
import { MessageContent } from '@/components/MessageContent';
import { DialogContent } from '@/components/DialogContent';

export default defineComponent({
  name: 'Application',
  components: {
    NDialogProvider,
    NNotificationProvider,
    NMessageProvider,
    NLoadingBarProvider,
    MessageContent,
    DialogContent,
  },
  setup() {
    return {};
  },
});
</script>
